﻿package nl.sanity.puremvc 
{
	/**
	 * Notifications
	 * Define often-used PureMVC application notifications.
	 * 
	 * @langversion ActionScript 3
	 *
	 * @author A. Gosman
	 * @since  28/03/2009
	 */
	public class Notifications 
	{
		public static const STARTUP					: String 		= "startUp";
        public static const SHUTDOWN				: String 		= "shutDown";
		public static const INIT					: String 		= "init";
		public static const UPDATE					: String 		= "update"; 
		public static const ERROR					: String 		= "error";
		public static const CLEAR_ERROR				: String 		= "clearError";
		public static const SET_STATE				: String 		= "setState"; 
		public static const NAVIGATE				: String 		= "navigate"; 
		public static const ALIGN					: String 		= "align"; 
		public static const RESIZE					: String 		= "resize"; 
		public static const ENABLE					: String 		= "enable";
		public static const DISABLE					: String 		= "disable";
		public static const APP_SET_FOCUS			: String 		= "appSetFocus";
		public static const APP_KILL_FOCUS			: String 		= "appKillFocus";
		
		// Generic loading: for instance used to show a loader animation during loading of an image.
		public static const LOADING_STARTED			: String 		= "loadingStarted";
		public static const LOADING_PROGRESS		: String 		= "loadingProgress";
		public static const LOADING_COMPLETED		: String 		= "loadingCompleted";
		public static const LOADING_FAILED			: String 		= "loadingFailed";
		
		// Loading of initial assets via StartUpManager
		public static const STARTUP__RESOURCE_LOADING_STARTED	: String 	= "startupResourceLoadingStarted";
		public static const STARTUP_RESOURCE_LOADING_COMPLETED	: String 	= "startupResourceLoadingCompleted";
		public static const STARTUP_RESOURCE_LOADING_FAILED		: String 	= "startupResourceLoadingFailed";
		
		// font registering
		public static const REGISTER_FONTS			: String 		= "registerFonts";
		
		// Asset loading
		public static const ASSETS_LOADED			: String 		= "assetsLoaded";
		public static const ASSET_FAILED			: String 		= "assetFailed";  
	}
}